-- GENERATED SPELL FOR [Lok Orcbane] --


function spell0_3435(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_3435', 604, 1)
end

function spell1_3435(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3435', 10319, 1)
end

function spell2_3435(pUnit, Event) --@Intimidating Shout,n/a--
pUnit:FullCastSpellOnTarget(5246,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3435', 8267, 1)
end

function Sorts_3435(pUnit, Event)
local choix_sorts_3435 = math.random(0, 2)
if choix_sorts_3435 == 0 then
pUnit:RegisterEvent('spell0_3435', 1, 1)
end
if choix_sorts_3435 == 1 then
pUnit:RegisterEvent('spell1_3435', 1, 1)
end
if choix_sorts_3435 == 2 then
pUnit:RegisterEvent('spell2_3435', 1, 1)
end
end

function mob3435_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3435', math.random(1500, 3000), 1)
end

function mob3435_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3435_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3435_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3435, 1, 'mob3435_Action')
RegisterUnitEvent(3435, 2, 'mob3435_Leave')
RegisterUnitEvent(3435, 3, 'mob3435_Kill')
RegisterUnitEvent(3435, 4, 'mob3435_Die')
